package com.varton;

import com.varton.configuration.Configuration;
import com.varton.executor.impl.SimpleExecutor;
import com.varton.mapper.CompanyMapper;
import com.varton.po.Company;
import com.varton.session.MySqlSession;

/**
 * Hello world!
 */
public class App {
    public static void main(String[] args) {
        MySqlSession session = new MySqlSession(new Configuration(),new SimpleExecutor());
        CompanyMapper companyMapper = session.getMapper(CompanyMapper.class);
        Company company = companyMapper.selectOne(1L);

        System.out.println(company);
    }
}
